﻿<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java"
         import="java.util.*" %>

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="css/wangEditor.css">
    <link rel="stylesheet" type="text/css" href="css/base.css">
    <link rel="stylesheet" type="text/css" href="css/profile.css">
</head>
<body>
<%@ include file="header.jsp" %>


<!-- 中间主体板块 -->
<div class="main w clearfix">
    <div class="m-left">
        <div class="user-image"><img src="${user.headUrl}"></div>
        <div class="user-info">
            <div class="user-name">${user.username}</div>
            <div class="user-desc">${user.description}</div>
            <div class="user-position">坐标：${user.position}</div>
            <div class="user-school">学校：${user.school}</div>
            <div class="user-job">工作：${user.job}</div>
        </div>
        <div class="clearfix" style="border-bottom: 1px dashed #ddd;"></div>

        <div class="user-button">
            <a href="toEditProfile.do" class="button-follow">编辑信息</a>
            <a href="recharge_manage.do" class="button-follow">微信充值</a>
        </div>

        <div class="user-post">
            <div class="user-post-title"><span></span>&nbsp;发帖</div>
            <ul class="user-post-list">
                <c:forEach items="${postList}" var="post">
                    <li>
                        <span class="glyphicon glyphicon-file"></span>&nbsp;
                        <a href="toPost.do?pid=${post.pid}">${post.title}</a>
                        <span class="user-post-time">发布于 ${post.publishTime}</span>
                    </li>
                </c:forEach>
            </ul>
        </div>
    </div>

    <div class="m-right">
        <div class="user-follow">
            <div class="user-follow">关注了<span class="user-count">${user.followCount}</span>人</div>
            <div class="user-follower">关注者<span class="user-count">${user.followerCount}</span>人
            </div>
        </div>
        <div class="user-attr">
            <span class="user-like-count">获赞：${user.likeCount}</span>&nbsp;
            <span class="user-post-count">发帖：${user.postCount}</span>

        </div>
        <div class="user-scan-count">个人主页被浏览${user.scanCount}次</div>
    </div>

</div><!-- 主体结束 -->

<%@ include file="footer.jsp" %>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/base.js"></script>
<script type="text/javascript" src="js/zDialog.js"></script>
<script type="text/javascript" src="js/zDrag.js"></script>
</body>
</html>













